import request from '@/request'

import { Record } from '@/types'

export const getRecordList = () => {
  return request<Record[]>({
    url: "/record",
    method: 'GET',
  })
}

export const deleteRecord = (id: Record['id']) => {
  return request<{ id: Record['id'] }>({
    url: "/record/" + id,
    method: 'DELETE',
  })
}